<?php
#CLASS NOTICIAS


#TIPO DO HTML
$tipo	= "destaque";
$html	= "";
$sql	= mysql_query("SELECT * FROM boletim WHERE tipo = '$tipo' "); 
while($row	= mysql_fetch_array($sql)){
$dados		= $_class->pega($row['idnoticia']);
$foto		= $_class->pegaimagemfoto($row['idnoticia']);



$html .= '<table width="100%" border="0" cellspacing="3" cellpadding="3">';
$html .= '<tr>';
$html .= '<td width="18%"><img src="http://acmag.usinadearte.net/imagem.php?imagem=imagens/noticias/'.$foto["foto"].'&tam=225&tipo=3&corte=150"></td>';
$html .= '<td width="82%" valign="top">';
$html .= '<font face="Verdana, Arial, Helvetica, sans-serif" size="4">'.$dados['titulo'].'</font>';
$html .= '<br>';

$html .= '<font face="Verdana, Arial, Helvetica, sans-serif" size="2">';
$html .= ' '.$dados['descricao_p'].' ';
$html .= '</font>';
$html .= '</td>';
$html .= '</tr>';
$html .= '</table>';


}


$arquivo = "template/destaque.html";
$manipular = fopen("$arquivo", "w");
fwrite($manipular, $html);





 ?>